/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 自定义CSS变量 */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', 'Microsoft YaHei', Arial, sans-serif;
  background: var(--primary-gradient);
  color: #333;
  overflow-x: hidden;
}

/* 全局背景动画 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

#app {
  width: 100%;
  height: 100vh;
  position: relative;
}

/* 现代化按钮样式 */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 现代化输入框样式 */
.input {
  padding: 14px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  font-family: 'Inter', sans-serif;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input:focus {
  border-color: #4facfe;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

/* 现代化聊天容器样式 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  position: relative;
}

/* 聊天容器背景动画 */
.chat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, rgba(120, 119, 198, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(255, 119, 198, 0.1) 0%, transparent 30%);
  z-index: -1;
  animation: pulseBackground 10s ease-in-out infinite alternate;
}

@keyframes pulseBackground {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.chat-header {
  padding: 20px;
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: headerShine 6s linear infinite;
}

@keyframes headerShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.chat-header .logo {
  width: 24px;
  height: 24px;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.message {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  animation: fadeIn 0.3s ease-out;
  gap: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user {
  flex-direction: row-reverse;
}

.message.ai {
  flex-direction: row;
}

/* 消息头像样式 */
.message-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: avatarPulse 2s ease-in-out infinite;
}

.avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ai-avatar {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* 消息包装器 */
.message-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 52px);
}

/* 现代化消息气泡样式 */
.message-content {
  max-width: 100%;
  padding: 16px 20px;
  border-radius: 20px;
  word-wrap: break-word;
  line-height: 1.5;
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.message-content:hover {
  transform: translateY(-1px);
}

.message.user .message-content {
  background: var(--secondary-gradient);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 20px rgba(245, 87, 108, 0.3);
}

.message.ai .message-content {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-light);
}

/* 消息气泡发光效果 */
.message.user .message-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--secondary-gradient);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.message.user .message-content:hover::before {
  opacity: 0.7;
}

/* 现代化聊天输入框 */
.chat-input {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.chat-input input:focus {
  border-color: #4facfe;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.chat-input button {
  padding: 16px 24px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 80px;
}

.chat-input button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.chat-input button:hover::before {
  left: 100%;
}

.chat-input button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.chat-input button:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-input button:disabled::before {
  display: none;
}

/* 步骤容器样式 */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* 步骤气泡样式 */
.step-bubble {
  margin-bottom: 8px !important;
  animation: fadeInUp 0.3s ease-out;
}

.step-bubble:last-child {
  margin-bottom: 0 !important;
}

/* 步骤头部样式 */
.step-header {
  font-weight: bold;
  color: #007bff;
  margin-bottom: 6px;
  font-size: 14px;
}

/* 步骤内容样式 */
.step-content {
  line-height: 1.5;
  color: #333;
}

/* 步骤气泡动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 为步骤气泡添加特殊的边框效果 */
.message.ai .step-bubble {
  border-left: 3px solid #007bff;
  padding-left: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* 步骤气泡悬停效果 */
.step-bubble:hover {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* 现代化主页样式 */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* 主页logo */
.home-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.home-title {
  font-size: clamp(36px, 8vw, 64px);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes titleGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

.home-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  margin-bottom: 50px;
  text-align: center;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  width: 100%;
  animation: fadeInUp 1s ease-out 1s both;
}

.app-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

/* 卡片悬停效果 */
.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.app-card:hover::before {
  left: 100%;
}

.app-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-card:nth-child(1):hover {
  box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
}

.app-card:nth-child(2):hover {
  box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3);
}

.app-card h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-card p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* 响应式设计 */
/* 大屏幕桌面 (1200px+) */
@media (min-width: 1200px) {
  .chat-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .message-content {
    max-width: 70%;
  }
  
  .chat-input {
    padding: 25px 30px;
  }
  
  .chat-input input {
    font-size: 16px;
    padding: 18px 24px;
  }
  
  .chat-input button {
    padding: 18px 28px;
    font-size: 16px;
  }
}

/* 标准桌面 (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .chat-container {
    max-width: 100%;
  }
  
  .message-content {
    max-width: 75%;
  }
}

/* 平板横屏 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .home-container {
    padding: 60px 40px;
  }
  
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .chat-header {
    padding: 18px 20px;
    font-size: 17px;
  }
  
  .chat-messages {
    padding: 18px;
  }
  
  .message-content {
    max-width: 80%;
    padding: 14px 18px;
  }
  
  .chat-input {
    padding: 18px;
  }
  
  .chat-input input {
    padding: 14px 18px;
    font-size: 15px;
  }
  
  .chat-input button {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .avatar {
    width: 38px;
    height: 38px;
  }
  
  .message-avatar {
    width: 38px;
    height: 38px;
  }
}

/* 平板竖屏和大手机 (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .home-container {
    padding: 40px 30px;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .app-card {
    padding: 35px 25px;
  }
  
  .chat-header {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .chat-header .logo {
    width: 22px;
    height: 22px;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  .message {
    margin-bottom: 16px;
    gap: 10px;
  }
  
  .message-content {
    max-width: 85%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .chat-input {
    padding: 16px;
    gap: 10px;
  }
  
  .chat-input input {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .chat-input button {
    padding: 12px 18px;
    font-size: 14px;
    min-width: 70px;
  }
  
  .avatar {
    width: 36px;
    height: 36px;
  }
  
  .message-avatar {
    width: 36px;
    height: 36px;
  }
}

/* 手机 (最大575px) */
@media (max-width: 575px) {
  .home-container {
    padding: 30px 20px;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-card {
    padding: 25px 20px;
  }
  
  .app-card h3 {
    font-size: 18px;
  }
  
  .app-card p {
    font-size: 13px;
  }
  
  .chat-header {
    padding: 14px 16px;
    font-size: 15px;
    flex-direction: column;
    gap: 5px;
  }
  
  .chat-header .logo {
    width: 20px;
    height: 20px;
  }
  
  .chat-messages {
    padding: 12px;
  }
  
  .message {
    margin-bottom: 14px;
    gap: 8px;
  }
  
  .message-content {
    max-width: 90%;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 16px;
  }
  
  .message.user .message-content {
    border-bottom-right-radius: 4px;
  }
  
  .message.ai .message-content {
    border-bottom-left-radius: 4px;
  }
  
  .chat-input {
    padding: 12px;
    gap: 8px;
    flex-direction: column;
  }
  
  .chat-input input {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .chat-input button {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 60px;
    border-radius: 20px;
    width: 100%;
  }
  
  .avatar {
    width: 32px;
    height: 32px;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
  }
  
  .card-icon {
    width: 56px;
    height: 56px;
  }
  
  .card-icon svg {
    width: 40px;
    height: 40px;
  }
  
  /* 手机端优化滚动条 */
  .chat-messages::-webkit-scrollbar {
    width: 3px;
  }
  
  /* 手机端优化按钮间距 */
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* 超小屏幕手机 (最大375px) */
@media (max-width: 375px) {
  .home-container {
    padding: 20px 15px;
  }
  
  .app-card {
    padding: 20px 15px;
  }
  
  .chat-header {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .chat-messages {
    padding: 10px;
  }
  
  .message-content {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .chat-input {
    padding: 10px;
  }
  
  .chat-input input {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .chat-input button {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .avatar {
    width: 28px;
    height: 28px;
  }
  
  .message-avatar {
    width: 28px;
    height: 28px;
  }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .chat-header {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .chat-messages {
    padding: 10px 20px;
  }
  
  .chat-input {
    padding: 10px 20px;
  }
  
  .message {
    margin-bottom: 10px;
  }
  
  .message-content {
    padding: 8px 12px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .avatar:hover,
  .message-content:hover {
    transform: none;
  }
  
  .chat-input button {
    min-height: 44px; /* iOS推荐的最小触摸目标 */
  }
  
  .chat-input input {
    min-height: 44px;
  }
}

/* 卡片图标样式 */
.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: iconFloat 3s ease-in-out infinite;
}

.card-icon:hover {
  transform: scale(1.1) translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon svg {
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
}

.card-icon:hover svg {
  transform: scale(1.1);
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 爱心图标特殊效果 */
.app-card:first-child .card-icon {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 168, 204, 0.2));
}

.app-card:first-child .card-icon:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(255, 168, 204, 0.3));
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

/* 机器人图标特殊效果 */
.app-card:last-child .card-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(139, 92, 246, 0.2));
}

.app-card:last-child .card-icon:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(139, 92, 246, 0.3));
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 卡片按钮样式 */
.card-button {
  margin-top: 25px;
  padding: 12px 24px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 25px;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.card-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.app-card:hover .card-button::before {
  left: 100%;
}

.app-card:hover .card-button {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

/* 底部版权信息样式 */
.home-footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 1.5s both;
  z-index: 10;
}

.home-footer p {
   margin: 0;
   color: rgba(255, 255, 255, 0.8);
 }

/* 加载动画样式 */
.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: loadingPulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* 返回按钮优化 */
.chat-header .btn {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
}

.chat-header .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

/* 聊天头部图标样式 */
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: headerIconPulse 2s ease-in-out infinite;
}

.header-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-icon svg {
  transition: all 0.3s ease;
}

@keyframes headerIconPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* 增强的玻璃效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

/* 文本选择样式 */
::selection {
  background: rgba(79, 172, 254, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(79, 172, 254, 0.3);
  color: white;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}